home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 4962 < prev    next >
Encoding:
Text File  |  1996-08-05  |  2.9 KB  |  62 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: news.ridgecrest.ca.us!usenet
  3. From: mojaveg@ridgecrest.ca.us (Everett M. Greene)
  4. Subject: Re: How adjust window borders?
  5. X-Nntp-Posting-Host: annex028
  6. Content-Type: text/plain; charset=iso-8859-1
  7. Message-ID: <19960307.7D760F8.631F@mojaveg.ridgecrest.ca.us>
  8. Sender: usenet@ridgecrest.ca.us (Ridgenet Usenet admin)
  9. Content-Transfer-Encoding: 8bit
  10. Organization: none that you'd notice
  11. X-Newssoftware: GRn 2.1 Feb 19, 1994
  12. References: <19960217.7D84090.A425@mojaveg.ridgecrest.ca.us> <ehb.02st@draco.prima.ruhr.de> <4gm1af$i15@the-fly.zip.com.au> <4hhhpr$qc9@info.epfl.ch>
  13. Mime-Version: 1.0
  14. Date: Thu, 7 Mar 1996 14:21:50 GMT
  15.  
  16. In article <4hhhpr$qc9@info.epfl.ch> vez@de.epfl.ch (Philippe Vez) writes:
  17. > Stuart Mackinnon (stuartm@zip.com.au) wrote:
  18. > : In article <19960217.7D84090.A425@mojaveg.ridgecrest.ca.us> mojaveg@ridgecrest.ca.us (Everett M. Greene) writes:
  19. > : >I wish to be able to directly control the size of the window borders
  20. > : >for a window which has no border gadgets or text.  The window opens
  21. > : >as desired but I would prefer to have all four borders a bit wider.
  22. > : >The implications in the RKM are that WA_InnerWidth and WA_InnerHeight
  23. > : >should have some effect on border widths, but trying these seems to
  24. > : >have no visible effect whatsoever.  Any ideas?
  25. > : What I am about to tell you is not very system friendly!!! Be warned!!
  26. > [snip]
  27. > : This lets you adjust your window's borders, but I would recommend NOT
  28. > : doing it.
  29. > As you said, it's not very system friendly. There is another way that is
  30. > discussed in the RKM I think.
  31. > Before Opening your window add Gadgets ( WA_Gadgets ) in the borders that don't
  32. > have an imagery, don't forget to set the proper flags (something like 
  33. > GFLG_RIGHTBORDER, etc..) . Simply adjust the Height and Width of the gadgets
  34. > to the width you'd like the windows borders have.
  35. > Intuition will automatically adjust the window borders to keep your invisible
  36. > border gadgets inside the border (argh.. not so good english...)
  37.  
  38. Excerpt from intuition.h:
  39.  
  40. /* if any of the BORDER flags are set in a Gadget that's included in the
  41.  * Gadget list when a Window is opened, the corresponding Border will
  42.  * be adjusted to make room for the Gadget
  43.  */
  44. #define GACT_RIGHTBORDER  0x0010
  45. #define GACT_LEFTBORDER      0x0020
  46. #define GACT_TOPBORDER      0x0040
  47. #define GACT_BOTTOMBORDER 0x0080
  48. #define GACT_BORDERSNIFF  0x8000  /* neither set nor rely on this bit    */
  49.  
  50. The comment about the borders being adjusted for the size of the
  51. gadget(s) is fine, but my original posting said that I have NO
  52. gadgets to place in the borders.  One could use the trick of a
  53. zero-sized gadget, but that would increase the border width by
  54. zero.
  55.  
  56.     -----------------------------------------------------------------------
  57.     Everett M. Greene   (The Mojave Greene, crotalus scutulatus scutulatus)
  58.     Ridgecrest, Ca. 93555           Path: mojaveg@ridgecrest.ca.us
  59.